package com.highspeed.bdk.gateway.entity;

import java.util.List;

/**
 * 物理端口信息
 */
public class PhysicalPort {
    private int physicalPortId; //16-bit rionet id + 16-bit portId
    private int  physicalAddr;//32-bit 物理地址

    private char reserved;
    private String portQuality; //端口质量等级
   private String portMode;  //端口模式,0001 1x,0010 4x

    private  char reserved1;

    private short routeItems;//路录表项的个数

    private int bandwidthCap; //端口能力带宽（Mbps）

    private int bandwidthAvail; //端口实际平均带宽

    private List<PortRouteItem> portRouteItems;

    public int getPhysicalPortId() {
        return physicalPortId;
    }

    public void setPhysicalPortId(int physicalPortId) {
        this.physicalPortId = physicalPortId;
    }

    public int getPhysicalAddr() {
        return physicalAddr;
    }

    public void setPhysicalAddr(int physicalAddr) {
        this.physicalAddr = physicalAddr;
    }

    public char getReserved() {
        return reserved;
    }

    public void setReserved(char reserved) {
        this.reserved = reserved;
    }

    public String getPortQuality() {
        return portQuality;
    }

    public void setPortQuality(String portQuality) {
        this.portQuality = portQuality;
    }

    public String getPortMode() {
        return portMode;
    }

    public void setPortMode(String portMode) {
        this.portMode = portMode;
    }

    public char getReserved1() {
        return reserved1;
    }

    public void setReserved1(char reserved1) {
        this.reserved1 = reserved1;
    }

    public short getRouteItems() {
        return routeItems;
    }

    public void setRouteItems(short routeItems) {
        this.routeItems = routeItems;
    }

    public int getBandwidthCap() {
        return bandwidthCap;
    }

    public void setBandwidthCap(int bandwidthCap) {
        this.bandwidthCap = bandwidthCap;
    }

    public int getBandwidthAvail() {
        return bandwidthAvail;
    }

    public void setBandwidthAvail(int bandwidthAvail) {
        this.bandwidthAvail = bandwidthAvail;
    }

    public List<PortRouteItem> getPortRouteItems() {
        return portRouteItems;
    }

    public void setPortRouteItems(List<PortRouteItem> portRouteItems) {
        this.portRouteItems = portRouteItems;
    }

    public PhysicalPort(int physicalPortId, int physicalAddr, char reserved, String portQuality, String portMode, char reserved1, short routeItems, int bandwidthCap, int bandwidthAvail, List<PortRouteItem> portRouteItems) {
        this.physicalPortId = physicalPortId;
        this.physicalAddr = physicalAddr;
        this.reserved = reserved;
        this.portQuality = portQuality;
        this.portMode = portMode;
        this.reserved1 = reserved1;
        this.routeItems = routeItems;
        this.bandwidthCap = bandwidthCap;
        this.bandwidthAvail = bandwidthAvail;
        this.portRouteItems = portRouteItems;
    }
}
